/**
 * Created by yfx on 2016-10-24.
 */
//
export const RIGHT_HEADER_CHANGE = 'RIGHT_HEADER_CHANGE';//
//地址和头部权显示转换
const url2headerRight={
    "/login":"login",
    "/":"index",
    "/info":"info"
}

export function right_header_change (url) {
    let headerRight=url2headerRight[url]||url2headerRight["/"];
    return {
        type: RIGHT_HEADER_CHANGE,
        headerRight:headerRight
    }
}